package cn.xd.base.application.assembler;

import cn.xd.base.domain.bean.response.DictGroupDTO;
import cn.xd.base.domain.entity.DictGroup;
import cn.xd.base.persistence.dos.DictGroupDO;
import cn.xd.core.converter.Converter;
import cn.xd.core.converter.ReferenceMapper;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author : mirzaLin
 * @data : 2023/11/20
 * @description :
 **/
@Mapper(uses = ReferenceMapper.class)
public interface DictGroupAssembler extends Converter<DictGroupDTO, DictGroupDO> {

    DictGroupAssembler INSTANCE = Mappers.getMapper(DictGroupAssembler.class);

    DictGroupDTO toDto(DictGroup dictGroup);
}
